package com.atguigu.springcloud.entities;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author 赵赳
 * @CreateTime: 2021/2/25 0:02
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> implements Serializable {
    private Integer code;
    private String  messages;
    private T data;

    public CommonResult(Integer code, String messages) {
        this(code,messages,null);
    }
}
